package com.example.scenictourback.repository;

import com.example.scenictourback.entity.Room;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface RoomRepository extends JpaRepository<Room, Integer> {
    
    List<Room> findByHotelId(Integer hotelId);
    
    List<Room> findByHotelIdAndAvailableGreaterThan(Integer hotelId, Integer minAvailable);
} 